package edu.sctu.nieyu.day20150521.textone;

/**
 * Created by user01 on 2015/5/21.
 */
public class Ship extends Traffic implements Inter {
    @Override
    public void method() {
        System.out.println("装载乘客300人");
    }

    @Override
    public void method1() {
        System.out.println("在海洋中行驶");
    }

    @Override
    public void getMessage() {
        System.out.println("船：");

        Traffic ship = new Ship();
        ship.method();
        ship.method1();
    }
}
